def log_doc_param(warning_str):
    def decorator(func):
        def wrapper(*args, **kwargs):
            print('this is log infomation' + warning_str)
            return func(*args, **kwargs)
        return wrapper
    return decorator


@log_doc_param(warning_str='OK')
def test():
    print('This is test message')


test()
